package com.guoxin.facade;

/**
 * @author guoxin
 * @date 2019年8月26日
 */
public class Popcorn {
	private Popcorn() {
	}

	private static class PopcornHandler {
		private static Popcorn popcorn = new Popcorn();
	}

	public static Popcorn getInstance() {
		return PopcornHandler.popcorn;
	}

	public void on() {
		System.out.println(" popcorn on ");
	}

	public void off() {
		System.out.println(" popcorn ff ");
	}

	public void pop() {
		System.out.println(" popcorn is poping ");
	}
}
